
// //axios  配置代码
// import axios from 'axios'

// export{
//     axios
// }
import { axios, get, post, Delete, Patch } from './request'

export const ajax = {
    test: (params) => get('/test', params),
    register: (data) => post('/user', data),
    findUser: (params) => get('/user', params),
    changeuser: (id, params) => Patch('/user/' + id, params),


    getCaptcha: (params) => get('http://47.104.209.44:3333/captcha/sent', params),

    checkCaptcha: (params) => get('http://47.104.209.44:3333/captcha/verify', params),

    getMZdata: (params, headers) => get('https://m.maizuo.com/gateway', params, headers),

    postMZdata: (data, params, headers) => post('https://m.maizuo.com/gateway', data, params, headers),

    getGoods: (params) => get('/getGoods', params),

    findGoods: (params) => get('/goods', params),

    findLikes: (params) => get('/likes', params),

    DeleteLikes: (id, params) => Delete('/likes/' + id, params),

    AddLikes: (data, params) => post('/likes', data, params),

    findcart: (params) => get('/cart', params),

    AddToCart: (data, params) => post('/cart', data, params),

    setCartOne: (id, data) => Patch('/cart/' + id, data),
}